---
category: Level 1 — Basic
created: '2020-02-21'
keywords:
title: Get or set the document title
---

## Get the document title

```js
const title = document.title;
```

## Set the document title

```js
document.title = 'Hello World';
```
